   import {get,post} from './axiosConfig'
   import reHttp from './http'


   /******************** 登录 ********************/
   /**
    * 登录
    */
   export function loginHandle (mobile, password) {
       return post(`${reHttp}/personal/login`, {mobile: mobile, password: password})
   }

   /**
    * 单点登录
    */
   export function signLoginHandle (timestamp, mobile, signature) {
       //return get('/api/personal/login?timestamp='+timestamp+'&mobile='+mobile+'&signature='+signature)
       return get(`${reHttp}/personal/login?timestamp=${timestamp}&mobile=${mobile}&signature=${signature}`)
   }

   /******************** 头部 ********************/
   /**
    * 修改密码
    */
   export function updatePassword (submitData) {
       return post(`${reHttp}/api/basics/update_password`, submitData)
   }

    export default {
        loginHandle,
        updatePassword,
        signLoginHandle
    }